package org.jwd.storage.controller;

import lombok.extern.slf4j.Slf4j;
import org.jwd.core.web.Res;
import org.jwd.storage.service.AuditService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

/**
 * @author vizz
 * @since 2022/5/19 22:19
 */
@Slf4j
@RestController
@RequestMapping("audit")
public class AuditController {

    @Resource
    AuditService auditService;

    @GetMapping("list")
    public Res list() {
        List data = auditService.list();
        return Res.succeed("", data);
    }
}
